<?php
if(!defined('IN_PHPSCUP'))exit('hacking'); 
class AlonepageApp extends BaseApp
{
 
     var $type = 'alonepage';  
   
    function index()
    {
        
		
		$pa = $_GET['pa'];
		$pa || $pa = $_REQUEST['pa'];
        $GLOBALS['Lang']->_get_lang('alonepage');	
		$TB_nav = &$this->_model('nav');	 
		
		$navdata = $TB_nav->show(COMPANY_ID);
		foreach($navdata as $key => $value)
		{
		 unset($navdata[$key]['config']);				
         $navdata[$key]['config'] = @unserialize($value['config']);		
		}			
		
        $this->assign('navigation', $navdata);
		$companydata = $TB_nav->companymsg(COMPANY_ID);			
        $this->assign('companydata', $companydata);				
 	    $TB_alonepage = &$this->_model('alonepage'); 	 
		
		$info = $TB_alonepage->oneshow($pa,COMPANY_ID);	
	        $qq_data = array();
        $qq_temp1 = del_empty_var(explode('|', QQ_SET_DATA));
		foreach($qq_temp1 as $key=>$value)
		{
           $qq_temp2 = del_empty_var(explode(':', $value));	
		   $qq_data[$qq_temp2[0]] = $qq_temp2[1];     
		}
        $this->assign('qq_data',$qq_data);		
				
        $this->assign('view_charset', VIEW_CHARSET);	
        $this->assign('companyid',COMPANY_ID);	
        $this->assign('login_icon', $GLOBALS['SCup']->SCup_user_checking);
		$this->assign('bg_pic_url',SITE_URL.'/'.$GLOBALS['SCup']->SCup_name.'/view/'.VIEW_TYPE .'/style/'.CSS_TYPE.'/');
        $this->assign('page_title', $info['title']);
        $this->assign('page_description', $info['description']);
        $this->assign('page_keywords', $info['keywords']);
        $this->assign('name', $info['name']);			
		$this->assign('content', $info['content']);			
        $this->assign('langtype', trim($GLOBALS['Lang']->_lang_tp));
	        $this->assign('site_url',SITE_URL);	
        $this->display('alonepage.view.html');		
		
		
    }


   
}




?>